
<?php
$title='功能中心';
include './head.php';
?>
<script>
$(document).ready(function () {
	$('#start').click(function(){
		$("#start").html('loading');
		$('#result').hide();
		$('#result').html('<div class="alert alert-info"><img src="../assets/img/load.gif">&nbsp;请稍等，正在发起通话中。。。</div>');
		$("#result").slideDown();
		$.get("submit.php",
		{
			phone:$('#phone').val(),
			display:$('#display').val(),
			target:$('#target').val(),
			km:$('#km').val(),
		},
		function(data,status){
			$("#start").html('提交');
			$('#result').hide();
			$('#result').html(data);
			$("#result").slideDown();
		});
	});
});
</script>
  <div class="container" style="padding-top:70px;">
    <div class="col-xs-12 col-sm-10 col-lg-8 center-block" style="float: none;">
      <div class="panel panel-primary">
        <div class="panel-heading"><h3 class="panel-title">呼叫中心公告</h3></div>
          <?=$conf['zgg']?>
      </div>
      <p><input id="phone" type="text" class="form-control" placeholder="你的手机号码"></p>
              <p><input id="display" type="text" class="form-control" placeholder="在对方手机上显示的号码"></p>
			  <p><input id="target" type="text" class="form-control" placeholder="拨打的号码"></p>
			  <p><button type="button" class="btn btn-primary btn-block" id="start" data-complete-text="Loading finished">提交</button></p>
			  <p id="result"></p>

    </div>
  </div>
  